/*
 直接更新state的多个方法的对象
 */
import Vue from 'vue'

import {RECEIVE_ADDRESS, RECEIVE_USER_INFO} from './mutation-types'

export default {
  [RECEIVE_ADDRESS](state, {address}) {
    state.address = address;
  },
  [RECEIVE_USER_INFO](state, {userInfo}) {
    state.userInfo = userInfo
  }
}
